# 基础镜像
FROM openjdk:8
# 维护人
MAINTAINER lzx<1013926837@qq.com>
# 创建目录
RUN mkdir -p /var/jenkins_home/home/app
# 拷贝项目jar
COPY az-gateway/target/az-gateway-1.0-SNAPSHOT.jar /var/jenkins_home/home/app/xst-gateway.jar
COPY az-service/target/az-service-1.0-SNAPSHOT.jar /var/jenkins_home/home/app/xst-service.jar
# 执行命令启动jar
#ENTRYPOINT ["java","-jar","/home/app/az-gateway.jar"]
#ENTRYPOINT ["java","-jar","/home/app/az-service.jar"]
COPY start.sh /var/jenkins_home/home/app/start.sh
RUN chmod +x /var/jenkins_home/home/app/start.sh
ENTRYPOINT ["/var/jenkins_home/home/app/start.sh"]
# 暴露端口
EXPOSE 10022